/*
 * Copyright @ 苏州瑞云信息技术有限公司 All rights reserved.
 */
package cn.com.recloud.bbs.dao;

import cn.com.recloud.bbs.entity.bbs_article;
import cn.com.recloud.bbs.vo.AppArticStatisticsVO;
import cn.com.recloud.bbs.vo.AppListArticVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author kim dong
 * @date 2020-06-08
 */
public interface ArticleDao extends BaseMapper<bbs_article> {

    /**
     * @param page
     * @param sort most 最热 new 最新 recommend 推存
     * @param typeId
     * @return
     */
    List<AppListArticVO> selectAppList(@Param("page") IPage<AppListArticVO> page,@Param("sort") String sort , @Param("typeId") String typeId);

    /**
     * 查询app的统计数据
     * @param id
     * @return
     */
    AppArticStatisticsVO selectAppStatistics(@Param("id") String id);

    int deleteAvater(String id);
}
